<template>
  <div>
    <codeIpt v-model="code"></codeIpt>
    <button @click="handelClick">按钮</button>
  </div>
</template>

<script>
import codeIpt from "../../components/codeIpt/codeIpt.vue";
export default {
  components: {
    codeIpt,
  },
  data() {
    return {
      code: "",
    };
  },
  mounted() {
    console.log(this.code);
  },
  methods: {
    handelClick() {
      console.log(this.code);
    },
  },
};
</script>

<style>
</style>